import request from '@/utils/request'

export const getContractList = (contractData) => {
    return request.get('/contract/list', { data: contractData })
}
export const getContractFinanciallist = (contractData) => {
    return request.post('/contract/Financiallist',  contractData )
}

export const updateContract = (updateData) => {
    return request.put('/contract/update', updateData)
}

export const addContractService = (addData) => {
    return request.post('/contract/add', addData)
}

export const getContractPageList = (pageNum, pageSize, contractData) => {
    return request.get('/contract/Pagelist', {
        params: {
            pageNum,
            pageSize,
            ...contractData
        }
    });
};

export const deleteContractService = (id) => {
    return request.delete(`/contract/delete/${id}`)
}

